export default {
  /**
   * 预警等级
   * @param type
   * @returns {string}
   */
  warningLevel (type) {
    let value
    switch (+type) {
      case 1:
        value = '红色'
        break
      case 2:
        value = '橙色'
        break
      case 3:
        value = '黄色'
        break
      default:
        value = ''
    }
    return value
  },
  /**
   * 处理意见
   * @param type
   * @returns {string}
   */
  handlingOpinion (type) {
    let value
    switch (+type) {
      case 1:
        value = '不做处理'
        break
      case 2:
        value = '不做处理'
        break
      case 3:
        value = '不做处理'
        break
      default:
        value = ''
    }
    return value
  }
}
